import { pubRequire } from '@utils/public'
const baseUrl = '/live-rooms/gifts'
/*直播间礼品列表*/
export function getLiveGiftList(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callbBack, errBack)
}
/* 新增礼物 */
export function addLiveGiftList(obj, callbBack, errBack) {
  return pubRequire('post', `${baseUrl}`, obj, callbBack, errBack)
}
/* 编辑礼物 */
export function editLiveGiftList(obj, callbBack, errBack) {
  return pubRequire('put', `${baseUrl}`, obj, callbBack, errBack)
}
/* 礼物上下架 */
export function onOrShelves(obj, callbBack, errBack) {
  return pubRequire('put', `${baseUrl}/shelf`, obj, callbBack, errBack)
}
/* 礼物上下移动 */
export function upOrDownMove(obj, callbBack, errBack) {
  return pubRequire('put', `${baseUrl}/move`, obj, callbBack, errBack)
}
/* 删除礼物 */
export function deleteLiveGif(obj, callbBack, errBack) {
  return pubRequire('delete', `${baseUrl}/${obj.id}`, obj, callbBack, errBack)
}
